projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e6231b
)
Let csv formats warn for time formats that we can't parse.
author
robertl
<robertl>
Wed, 14 Nov 2007 16:15:56 +0000
(16:15 +0000)
committer
robertl
<robertl>
Wed, 14 Nov 2007 16:15:56 +0000
(16:15 +0000)
csv_util.c
patch
|
blob
|
history
diff --git
a/csv_util.c
b/csv_util.c
index a612a60c97366b03a76ddd4cc31620faeca76489..f5dd1df8a53050e173177b2da664347e6c9d9521 100644
(file)
--- a/
csv_util.c
+++ b/
csv_util.c
@@
-775,9
+775,14
@@
sscanftime( const char *s, const char *format, const int gmt )
else
return mktime(&stm);
}
-
+ // Don't fuss for empty strings.
+ if (*s) {
+ warning("date parse of string '%s' with format '%s' failed.\n",
+ s, format);
+ }
return 0;
}
+
static
time_t
addhms( const char *s, const char *format )